package com.sky.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(description = "角色信息VO")
public class AdminRoleVO {

    @ApiModelProperty("角色ID")
    private Long id;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("角色描述")
    private String description;

    @ApiModelProperty("角色拥有的权限列表")
    private List<PermissionVO> permissions;

    @ApiModelProperty("是否是系统角色")
    private Boolean isSystem;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @Data
    @ApiModel(description = "权限信息")
    public static class PermissionVO {
        @ApiModelProperty("权限ID")
        private Long id;

        @ApiModelProperty("权限名称")
        private String name;
    }
} 